package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Video;
import com.tanhua.dubbo.server.vo.PageInfo;

public interface VideoApi {

    //保存小视频
    String saveVideo(Video video);

    //查询小视频
    PageInfo<Video> queryVideoList(Long userId ,Integer page,Integer pageSize);

    //通过视频id查询
    Video queryVideoById(String videoId);

    //关注用户
    Boolean followUser(Long userId,Long followUserId);

    //取消关注
    Boolean disFollowUser(Long userId,Long followUserId);

    //判断是否关注
    Boolean isFollowUser(Long userId,Long followUserId);
}
